package com.guyu.app.common.constant;

import com.guyu.plugin.redisson.key.ICacheKey;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.concurrent.TimeUnit;

@Getter
@AllArgsConstructor
public enum CacheKey implements ICacheKey {
    SMS_CAPTCHA("sms_captcha:", "短信验证码缓存", 5L, TimeUnit.MINUTES),
    ADMIN_CAPTCHA("admin_captcha:", "管理员验证码", 5L, TimeUnit.MINUTES),

    //
    ;

    private String key;
    private String desc;
    private Long expire;
    private TimeUnit unit;

}

